package com.mths.client.constant;

public enum DirectorType {
	REAL("R"), CORPORATE("C");

	private String code;

	private DirectorType(String code) {
		this.code = code;
	}

	@Override
	public String toString() {
		return code;
	}

	public static DirectorType enumFromStringValue(String value) {
		if (value == null || ("").equals(value))
			return null;
		for (DirectorType director : values()) {
			if (director.toString().equals(value))
				return director;
		}
		return null;
	}
}
